package com.movie.controller.SysUserController;

import com.movie.beans.SysUser;
import com.movie.service.SysMenuService;
import com.movie.utils.ShiroUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
/**
 * @Description : index控制层
 * @Author : nlw
 * @Date : 2021/8/28
 */
@Controller
public class IndexController {
    @Autowired
    private SysMenuService menuService;


    // 系统首页
    @GetMapping(value = "/index")
    public String index(ModelMap modelMap){
        SysUser user = ShiroUtil.getSysUser();
        modelMap.addAttribute("name",user.getLoginName());
        return "/index";
    }
}
